// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//void cancel_out_fight(0,short kill_enc)
//void make_outdoor_enc(short x,short y,short which_enc)
//void set_out_fight_field(short which_field)

begintalkscript;

variables;

short this_sec = 95;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "Once you are clear of Port Osborn, you look around. Prince Sutter and you spent the three days since you arrived in the Rokaj hunting these valleys.";
	text2 = "This is the normal terrain of the Rokaj: Tight valleys, broken up by sharp spires of stone. Down here in the Gentle Coast, the land is green, nourished by frequent rain. Once you leave the coast, the terrain gets hostile quickly.";
	text3 = "You advance carefully, looking for raiders, bandits, and violent opportunists. Happily, none are visible yet.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "This wagon has been rotting in the rain for years. It is surrounded by decaying trash. Anything of value was looted years ago.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "A determined application of violence has rapidly un-haunted this farmhouse. Freed of walking dead people, it is easy to search.";
	text2 = "Almost everything has decayed away. In a broken-down dresser, you do find a lovely cowl. It has somehow survived its years of neglect undamaged.";
	code =
		reward_give(277);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "The raiders have been destroyed. You have done your part to return order to the Rokaj. Seems easy so far.";
	text2 = "After a search, you find that they haven't had much luck extracting wealth from the Gentle Coast. You find a few coins and bits of tacky jewelry. Better than nothing.";
	code =
		change_coins(100,TRUE);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "From the distance, this looked like a camp of loyal warriors, guarding the pass and keeping it safe for you. Ro does have a proper army, loyal to Haven. They are wearing its insignia.";
	text2 = "As you greet them, you realize that their military garb is old, torn, and ill-fitting. Doubtless stolen. The raiders realize that you have seen through their disguise, and they draw their weapons.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Some raiders and brigands have located you. They charge you fearlessly. Do they realize how completely you and your warriors outclass them? Who knows? The Ro have an endless history of being wildly fearless, but no outsiders can ever claim to truly understand them.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "The bones silently climb over the ruined walls. They are mindless, fearless, and rapidly crumbling. You have fought far worse foes.";
	code =
		set_out_fight_field(10);
	break;
	
begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You find a camp of dirty, poor Ro warriors, hidden in a cove on the rocky shore. They are swarthy and protected by iron armor. These must be raiders, down from the rocky hills of the Low Dhaga.";
	text2 = "This is a very bold bunch, but their presence is not unusual. The Ro are robbing and raiding each other constantly. Or maybe they are part of the bands sent to kill you.";
	text3 = "When you come into view, they grab their weapons. Their leader cautiously approaches you. _I am Khessa. We know you. You're [N]. We saw your ship come. We are raiders of this weak coast, and we have no business with you. Leave us._";
	text4 = "When you come into view, their leader approaches you. _Again I tell you, [N], we are only here to raid the weak of the Gentle Coast. Leave us to our business. It doesn't concern you._";
	code =
		set_out_fight_field(8);
		if (gf(195,12) == 0) {
			sf(195,12,1);
			rs(4);
			}
			else {
				rs(2); rs(3);
				}
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_That's [P] [N] of Haven to you._";
	text1 = "Khessa shrugs. _We saw you chased out of your port. You look weak to us._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Are you allied with those who attacked us?_";
	text1 = "_We know nothing of that. Plenty here hate Haven now. We aren't involved in it. Leave us._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_You are here to raid the Gentle Coast?_";
	text1 = "_They are decadent and weak. They should have their wealth taken, on general principles. We will gain some wealth. Then we will return to the Low Dhaga._";

begintalknode;
	state = 11;
	nextstate = 10;
	condition = 1;
	question = "_Haven does not allow banditry._";
	text1 = "Khessa picks some dirt out from under her fingernails.";

begintalknode;
	state = 11;
	nextstate = 10;
	condition = average_level() < 4;
	question = "_I demand that you return home, or else._";
	text1 = "Khessa evaluates you with a practiced eye. _No, [P]. You are not strong here. The Ro are not cowards. We stay here, and we take what it ours._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = average_level() >= 4;
	question = "_I am no weakling. I demand that you return home, or else._";
	text1 = "Khessa evaluates you with a practiced eye. Then she lets out a long sigh. _We were tired of these lands anyway. Too wet. We will go home._ With remarkable speed, her warriors pack up their goods. They are gone within a minute.";
	text2 = "They pretend to be unafraid, but none of them can meet your gaze as they flee.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		award_party_xp(50);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_You may stay here._";
	text1 = "Khessa turns her back on you and returns to their fire. The Dhagan warriors snicker as you leave.";
	text2 = "This sort of treatment will probably happen a lot in the Ro, alas.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I probably should destroy you, just to play it safe._ (Attack.)";
	text1 = "Khessa is shocked. She didn't expect this. _We thought Haven was weak and cowardly. This is an unfortunate end. Killing you will cause us all sorts of trouble. Oh well._";
	action = END_TALK;

//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = get_sdf(100 + this_sec,11) == 0;
	question = "Name";
	text1 = "This overgrown ruin has been here for a long time. Your hunting guides steered you and Sutter away from it. They gave ominous warnings about it being _Haunted. Not good._";
	text2 = "Sutter was more interested in hunting things he could eat, so he steered you away. He's not here now.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "It's tempting to poke around, but you really have better things to do. You leave.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Explore.";
	text1 = "You find an old, abandoned stone farmhouse. You poke around the crumbling walls and trash-filled rooms. Inside the main hall, there is a jumble of human bones. The guides knew what they were talking about.";
	text2 = "Then the bones start moving on their own ...";
	action = END_TALK;
	code =
		sf(195,11,1);
		make_outdoor_enc(280,463,0);
	break;
	
	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = gf(195,10) == 0;
	question = "Name";
	text1 = "You meet a band of Ro warriors, part of the loyalist army of the Gentle Coast. They are keeping these lands secure and hunting down the few raiders remaining.";
	text2 = "These fierce soldiers greet you with great courtesy. Their weapons are in good repair and their armor is clean. They apologize that they have no useful news to share, promise they will give their lives to slay any invaders, and return to the hunt.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				